/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package exatrez.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 *
 * @author fikri
 */
@Embeddable
public class InfoAudit implements Serializable{
    
     @ManyToOne (fetch = FetchType.LAZY)
    @JoinColumn (name = "create_id")
    private User createId;

    @Column (name = "create_date", updatable = false)
    private Date createDate;
    
     @ManyToOne (fetch = FetchType.LAZY)
    @JoinColumn (name = "update_id")
    private User updateId;

    @Column (name = "update_date")
    private Date updateDate;
    
    public InfoAudit(){}

    public User getCreateId() {
        return createId;
    }

    public void setCreateId(User createId) {
        this.createId = createId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public User getUpdateId() {
        return updateId;
    }

    public void setUpdateId(User updateId) {
        this.updateId = updateId;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}
